/*
 * MESLink.cpp
 * MESLib
 * 
 * Created by William Carey on 5/9/09.
 * Copyright 2009 Starline Software.
 * 
 * This file is part of MESLib.
 * 
 * MESLib is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * MESLib is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with MESLib. If not, see <http://www.gnu.org/licenses/>.
 */


/** MESLinks represent a input-output connection between two MESEventBlocks. Each
  * link enforces logical constraints:
  * 
  *  1. The from event must have a start time before the start time of the 
  *     to event.
  * 
  * 
  * 
  * 
  **/

#include "MESLink.h"

MESLink::MESLink(MESEventBlock * from, MESEventBlock * to) {
	if (!from)
		; /* Doesn't go anywhere */
	
	if (!to)
		; /* Doesn't go anywhere */
	
	if (from->GetStart() < to->GetStart())
		; /* Backwards */

	from_ = from;
	to_ = to;
}

MESLink::~MESLink() {
	
}